package game

import (
	"github.com/gin-gonic/gin"
	"qm_system_server/server/api/v1"
	"qm_system_server/server/middleware"
)

type QmConfigRouter struct {
}

// InitQmConfigRouter 初始化 qmConfig表 路由信息
func (s *QmConfigRouter) InitQmConfigRouter(Router *gin.RouterGroup) {
	qmConfigRouter := Router.Group("qmConfig").Use(middleware.OperationRecord())
	qmConfigRouterWithoutRecord := Router.Group("qmConfig")
	var qmConfigApi = v1.ApiGroupApp.GameApiGroup.QmConfigApi
	{
		qmConfigRouter.POST("createQmConfig", qmConfigApi.CreateQmConfig)             // 新建qmConfig表
		qmConfigRouter.DELETE("deleteQmConfig", qmConfigApi.DeleteQmConfig)           // 删除qmConfig表
		qmConfigRouter.DELETE("deleteQmConfigByIds", qmConfigApi.DeleteQmConfigByIds) // 批量删除qmConfig表
		qmConfigRouter.PUT("updateQmConfig", qmConfigApi.UpdateQmConfig)              // 更新qmConfig表
	}
	{
		qmConfigRouterWithoutRecord.GET("findQmConfig", qmConfigApi.FindQmConfig)       // 根据ID获取qmConfig表
		qmConfigRouterWithoutRecord.GET("getQmConfigList", qmConfigApi.GetQmConfigList) // 获取qmConfig表列表

	}
}
